


/* link:未移入前 */
/* hover:移入  */
/* active: 点击 */
/* visited：点击后 */
/*  */
.btn {
  border-radius: 10rem;
  &, &:link, &visited {
    text-transform: uppercase;
    text-decoration: none;
    padding: 1.5rem 4rem;
    display: inline-block;
    transition: all .2s;
    position: relative;
    // change for button element
    border: none;
    cursor: pointer;

  }
  &:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    &::after {
      transform: scaleX(1.4) scaleY(1.6);
      opacity: 0;
    }
  }
  &:active,
  &:focus {
    outline: none;
    transform: translateY(-0.1rem);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
  }
  &::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 10rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1
  }
  &--white{
    background-color: $color-white;
    color: $color-grey-dark;
    &::after {
      background-color: $color-white;
      transition: all .4s;
    }
  }
  &--green{
    background-color: $color-primary;
    color: $color-white;
    &::after {
      background-color: $color-primary;
      transition: all .4s;
    }
  }
  &-animationed {
    animation: moveButton .5s ease-out .75s;
    animation-fill-mode: backwards;
  }
}

.btn-text {
  &:link,
  &:visited {
    font-size: $default-font-size;
    color: $color-primary;
    display: inline-block;
    text-decoration: none;
    border-bottom: 1px solid $color-primary;
    padding: 3px;
    transition: all .2s;
  }
  &:hover {
    color: $color-white;
    border-radius: 2px;
    background-color: $color-primary;
    box-shadow: 0 1rem 2rem rgba($color-black, .15);
    transform: translateY(-2px);
  }
  &:active {
    box-shadow: 0 .5rem 1rem rgba($color-black, .15);
    transform: translateY(0);
  }
}